export function findParentComponent(context, name) {
    if (!context) return null;
    var self = context
    var parent = self.$parent;
    var currentName = parent && parent.$options.name
    var isyes = currentName === name
    if (isyes) {
        return parent
    }
    return findParentComponent(parent, name)
}
